package cn.com.service;

import cn.com.dao.UserMapper;
import cn.com.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class UserServiceImpl implements UserService{
    @Resource
    private UserMapper userMapper;


    @Override
    public User getByAN(String accountNumber) {
        return userMapper.getByAN(accountNumber);
    }

    @Override
    public int add(User user) {
        return userMapper.add(user);
    }

    @Override
    public int update(User user) {
        return userMapper.update(user);
    }
}

